import { createApp } from 'vue'
import router from './router/index'
import { createPinia } from 'pinia'

import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import App from './App.vue'
import bus from '@/utils/bus'




const app = createApp(App)
app.config.globalProperties.$bus = bus
app.use(ElementPlus, {
    locale: zhCn,
}).use(createPinia()).use(router).mount('#app')
